From e08a69bc913756b1c2d6514ed1292417eaf1f333 Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 11 Jun 2003 05:07:39 +0000 Subject: [PATCH] Minor leak fixes. --- csv_util.h | 2 +- geo.c | 1 + mapsend.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/csv_util.h b/csv_util.h index a0bd4c09b..872173d79 100644 --- a/csv_util.h +++ b/csv_util.h @@ -24,7 +24,7 @@ char * csv_stringtrim(const char *string, const char *enclosure, int strip_max); #else CSV_STRINGTRIM(const char *string, const char *enclosure, int strip_max, DEBUG_PARAMS); -#define csv_stringtrim( s, e ) CSV_STRINGTRIM( s, e, __FILE__, __LINE__); +#define csv_stringtrim( s, e,m ) CSV_STRINGTRIM( s, e, m, __FILE__, __LINE__); #endif char * diff --git a/geo.c b/geo.c index c3ff29c4c..8e23c5434 100644 --- a/geo.c +++ b/geo.c @@ -145,6 +145,7 @@ geo_end(void *data, const char *el) in_name--; } else if (strcmp(el, "type") == 0) { + wpt_tmp->icon_descr_is_dynamic = 1; wpt_tmp->icon_descr = xstrdup(typestr); memset(typestr,0, MY_CBUF); in_type--; diff --git a/mapsend.c b/mapsend.c index cde422c1b..639ab3064 100644 --- a/mapsend.c +++ b/mapsend.c @@ -536,6 +536,7 @@ void mapsend_track_hdr(const route_head * trk) fwrite(&c, 1, 1, mapsend_file_out); fwrite(tname, c, 1, mapsend_file_out); + xfree(tname); /* total nodes (waypoints) this track */ i = 0; -- 2.30.2